package model

import (
	"time"
)

type Groups struct {
	Id        uint      `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Title     string    `gorm:"column:title;type:varchar(255);not null;" json:"title"`
	Price     float64   `gorm:"column:price;type:decimal(10, 2);not null;" json:"price"`
	Address   string    `gorm:"column:address;type:varchar(255);not null;" json:"address"`
	Name      string    `gorm:"column:name;type:varchar(255);not null;" json:"name"`
	Phone     string    `gorm:"column:phone;type:varchar(255);not null;" json:"phone"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt time.Time `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}
